package me.ridog.colorful.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;

/**
 * Created by Tate on 2017/9/1.
 */
@Controller
@RequestMapping("upload")
public class UploadController {

    @Value("${qiniu.upTokenUrl}")
    private String qiNiuUpTokenUrl;

    private static final Logger logger = LoggerFactory.getLogger(UploadController.class);

    @GetMapping("uptoken")
    @ResponseBody
    public String getQiNiuUpToken() throws IOException {
        logger.debug(qiNiuUpTokenUrl);
        return null;
    }
}
